#include <iostream>
#include <vector>
using namespace std;

void printvector ( const vector <int>&V)
  {cout <<"V:[";
   for (int i=0; i<V.size(); i++)
     {if (i>0) cout <<" "; cout << V[i];
     }
   cout <<"]"<<endl;
  }

void chislo ( const vector <int>&V, int &k, int c)
  {for (int i=0; i<V.size(); i++)
     {if (V[i]==c) k=k+1;
     }
   cout <<"etogo chisla v massive: "<< k <<endl;
  }

int main ()
  {int s; int c; int k=0; vector <int> V;
   cout<<"Vvedite chislo:  ";
   cin >> c; 
   while (cin >>s) {V.push_back(s);}
   printvector(V);
   chislo(V,k,c);
  }
